<?php    
    include_once( PATH . TEMPLATE . "includes/head.php");
    include_once( PATH . TEMPLATE . "includes/top.php");
    include_once( PATH . TEMPLATE . "includes/menuleft.php");
?>

<div id="content">
    <div>
        <?php 
            foreach ( $this->getItems() as $item ) {
                //$subcategory->show();
                echo '<div class="subcategoria">
                        <a href="'. $this->getNamepage() . "/" . $item->getID() .'">
                            <div class="img">
                                <img src="'. RAIZ . TEMPLATE .'img/' . $item->getUrlFoto() . '" width=100 heigth=100>
                            </div>
                        </a>
                        <div class="mame">' . $item->getName() . '</div>
                      </div>';                    
            }
        ?>
    </div>
</div>

<?php
    include_once( PATH . TEMPLATE . "includes/footer.php");    
?>